package com.mintandleaf.webkits.validator;

/**
 * Abastract class fo validaion function
 * u can create your own validation function
 * by extending this class
 * @author teguhh
 */
public abstract class BaseValidator {
    protected String errorMessage;
    public abstract boolean validate(Object value);
    public void setErrorMessage(String paramErrorMessage){
        this.errorMessage=paramErrorMessage;
    }
    public String getErrorMessage(){
        return this.errorMessage;
    }
}
